package cn.edu.nju.freshdelivery.dao;

import java.util.List;

import cn.edu.nju.freshdelivery.model.Order;
import cn.edu.nju.freshdelivery.model.Seller;

public interface OrderDAO {

	public void save(Order transientInstance);

	public void delete(Order persistentInstance);

	public Order findById(java.lang.Integer id);

	public List<Order> findByExample(Order instance);

	public List findByProperty(String propertyName, Object value);

	public List<Order> findByState(Object state);

	public List<Order> findByCost(Object cost);

	public List<Order> findByName(Object name);

	public List<Order> findByAddress(Object address);

	public List<Order> findByPhone(Object phone);

	public List<Order> findByBuyer(Object buyer);

	public List<Order> findBySeller(Seller seller);

	public List findAll();

	public Order merge(Order detachedInstance);

}